package com.meida.boot.handler.app;

import com.meida.common.enums.OnLineEnum;
import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.interceptor.PageInterceptor;
import com.meida.common.mybatis.model.PageParams;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.module.product.client.entity.ProdProduct;
import com.meida.module.product.provider.service.ProdShopService;
import com.meida.module.system.provider.service.SysColleconService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 产品列表
 *
 * @author Administrator
 */
@Component("productListHandler")
@Log4j2
public class ProductListHandler implements PageInterceptor<ProdProduct> {
    @Autowired
    private SysColleconService colleconService;

    @Autowired
    private ProdShopService shopService;


    @Override
    public void prepare(CriteriaQuery cq, PageParams pageParams, EntityMap params) {
        cq.eq(ProdProduct.class, "onLineState", OnLineEnum.ON.getCode());
    }


}
